package com.gzhryc.jdbc.test.db;

import java.util.Date;

import com.gzhryc.jdbc.annotaion.Column;
import com.gzhryc.jdbc.annotaion.Id;
import com.gzhryc.jdbc.annotaion.Table;

@Table(name="sys_role")
public class Role {

	@Id
	protected Long id;
	
	//基础属性
	@Column
	protected String name;
	
	@Column
	protected String code;
	
	@Column(length=255)
	protected String note;
	
	//扩展属性
	@Column(length=4)
	protected Integer status;
	
	@Column(name="update_date",autoUpdateTime=true)
	protected Date updateDate;
	
	@Column(name="create_date")
	protected Date createDate;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
}
